package com.saihai.jiankang.ufAppMenu.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.saihai.jiankang.ufAppMenu.mapper.UfAppMenuMapper;
import com.saihai.jiankang.ufAppMenu.domain.UfAppMenu;
import com.saihai.jiankang.ufAppMenu.service.IUfAppMenuService;

/**
 * 小程序菜单Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-07-11
 */
@Service
public class UfAppMenuServiceImpl implements IUfAppMenuService 
{
    @Autowired
    private UfAppMenuMapper ufAppMenuMapper;

    /**
     * 查询小程序菜单
     * 
     * @param id 小程序菜单主键
     * @return 小程序菜单
     */
    @Override
    public UfAppMenu selectUfAppMenuById(Long id)
    {
        return ufAppMenuMapper.selectUfAppMenuById(id);
    }

    /**
     * 查询小程序菜单列表
     * 
     * @param ufAppMenu 小程序菜单
     * @return 小程序菜单
     */
    @Override
    public List<UfAppMenu> selectUfAppMenuList(UfAppMenu ufAppMenu)
    {
        return ufAppMenuMapper.selectUfAppMenuList(ufAppMenu);
    }

    /**
     * 查询小程序菜单列表
     *
     * @param ufAppMenu 小程序菜单
     * @return 小程序菜单
     */
    @Override
    public List<UfAppMenu> selectUfAppMenuRoleList(UfAppMenu ufAppMenu)
    {
        return ufAppMenuMapper.selectUfAppMenuRoleList(ufAppMenu);
    }



    /**
     * 新增小程序菜单
     * 
     * @param ufAppMenu 小程序菜单
     * @return 结果
     */
    @Override
    public int insertUfAppMenu(UfAppMenu ufAppMenu)
    {
        return ufAppMenuMapper.insertUfAppMenu(ufAppMenu);
    }

    /**
     * 修改小程序菜单
     * 
     * @param ufAppMenu 小程序菜单
     * @return 结果
     */
    @Override
    public int updateUfAppMenu(UfAppMenu ufAppMenu)
    {
        return ufAppMenuMapper.updateUfAppMenu(ufAppMenu);
    }

    /**
     * 批量删除小程序菜单
     * 
     * @param ids 需要删除的小程序菜单主键
     * @return 结果
     */
    @Override
    public int deleteUfAppMenuByIds(Long[] ids)
    {
        return ufAppMenuMapper.deleteUfAppMenuByIds(ids);
    }

    /**
     * 删除小程序菜单信息
     * 
     * @param id 小程序菜单主键
     * @return 结果
     */
    @Override
    public int deleteUfAppMenuById(Long id)
    {
        return ufAppMenuMapper.deleteUfAppMenuById(id);
    }
}
